home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Subject: Re: pi algorithm...
- X-Nntp-Posting-Host: golden.ripco.com
- Message-ID: <DLw89w.3ME@rci.ripco.com>
- Sender: usenet@rci.ripco.com (Net News Admin)
- Organization: Ripco Internet BBS Chicago
- Date: Sun, 28 Jan 1996 13:32:19 GMT
- X-Ident-Sender: mambuhl
-
- kjpoglit@kjpoglit. (Karl Poglitsch) in <4e9a0c$foa@news.iconn.net>
- writes:
-
- >What I'm looking for is some code that will ive me the value of pi out to the
- >nth decimal point. I need at least 256 places, and it can be stored in a
- >character array. Right now I'm using a pre coded array, and that just isn't
- >cutting it. I have a few, but can't seem to get them working.
-
- >Any help would be appreciated...
-
- Try this TECO macro. If you use some other editor, you should be able
- to translate this to your editor's macro support, unless your editor has
- less functionality than a 30-year old editor for much smaller and slower
- machines than you are likely to be using.
-
- GZ0J\UNQN"E 40UN ' BUH BUV HK
- QN< J BUQ QN*10/3UI
- QI< \+2*10+(QQ*QI)UA B L K QI*2-1UJ QA/QJUQ
- QA-(QQ*QJ)-2\ 10@I// -1%I >
- QQ/10UT QH+QT+48UW QW-58"E 48UW %V ' QV"N QV^T ' QWUV QQ-(QT*10)UH >
- QV^T @^A/
- /HKEX$$
-
- What? You say TECO macros have nothing to do with C? Damn, you're
- right! But, then, neither does Karl's question.
-
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-